package com.guojiaming.interview.first;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.guojiaming.interview.R;
import com.guojiaming.interview.first.view.CustomRotateImageView;

public class FirstActivity extends AppCompatActivity {
    private CustomRotateImageView mCustomRotateImageView;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_first);
        mCustomRotateImageView = findViewById(R.id.iv_main);
        initView();
    }

    private void initView() {
        mCustomRotateImageView.addImages("https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3315324068,1694602888&fm=26&gp=0.jpg");
        mCustomRotateImageView.addImages("https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3435142851,1686079016&fm=26&gp=0.jpg");
        mCustomRotateImageView.addImages("https://dss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3577724933,2542589702&fm=26&gp=0.jpg");
        mCustomRotateImageView.addImages("https://dss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2670394782,1800253317&fm=26&gp=0.jpg");
        mCustomRotateImageView.addImages("https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3902791589,1169454366&fm=26&gp=0.jpg");
        mCustomRotateImageView.addImages("https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1357518075,2207145940&fm=26&gp=0.jpg");
        mCustomRotateImageView.addImages("https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2346282507,2171850944&fm=26&gp=0.jpg");
        mCustomRotateImageView.addImages("https://dss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1362874374,2095103613&fm=26&gp=0.jpg");
        mCustomRotateImageView.addImages("https://dss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2573142242,3008102846&fm=26&gp=0.jpg");
        mCustomRotateImageView.addImages("https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2483543097,3459309155&fm=26&gp=0.jpg");
    }


    public static void jumpTo(Context context) {
        Intent intent = new Intent(context, FirstActivity.class);
        context.startActivity(intent);
    }
}
